<script setup lang="ts">
import { onMounted } from "vue";
import { emitter } from "@/utils/mitt";
import { ref } from "vue";
import { onBeforeUnmount } from "vue";
// 输入框数据
const text = ref("");
onMounted(() => {
  // 触发隐藏标签页
  emitter.on("refresh", (key: any) => {
    console.log("lot-create");
  });
});

onBeforeUnmount(() => {
  // 解绑`refresh`公共事件，防止多次触发
  emitter.off("refresh");
});
</script>
<template>
  <div>
    <h1>Lot Create</h1>
    <el-input v-model="text" />
  </div>
</template>
